###############################################################################
# Find DEPTHSENSE
#
# This sets the following variables:
# DEPTHSENSE_FOUND - True if OpenNI was found.
# DEPTHSENSE_INCLUDE_DIR - Directories containing the OpenNI include files.
# DEPTHSENSE_LIBRARIES - Libraries needed to use OpenNI.

IF (WIN32)
ELSE ()
	FIND_PATH( DEPTHSENSE_INCLUDE_DIR DepthSense.hxx
		/opt/DepthSenseSDK/include/
    		${PROJECT_SOURCE_DIR}/external_lib/include
		DOC "The directory where DepthSense.hxx resides")
	FIND_LIBRARY(DEPTHSENSE_LIBRARIES
		NAMES libDepthSense
		PATHS
		/opt/DepthSenseSDK/lib/libDepthSense.so
    		${PROJECT_SOURCE_DIR}/external_lib/lib
		DOC "The DEPTHSENSE library")

ENDIF()

IF (DEPTHSENSE_INCLUDE_DIR AND DEPTHSENSE_LIBRARIES)
	SET( DEPTHSENSE_FOUND ON)
ELSE ()
	SET( DEPTHSENSE_FOUND OFF)
ENDIF ()

MARK_AS_ADVANCED( DEPTHSENSE_FOUND )

